package com.kehutong.crm.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import java.sql.Timestamp;
import java.util.Date;

@Table(value = "t_forecast_open", comment = "用户预测开通表")
public class ForecastOpen extends Entity {

    private static final long serialVersionUID = 1L;

    protected ForecastOpen(String id) {
        super(id);
    }

    @Column(comment = "企业id")
    private String corpId;

    @Column(comment = "企业名字")
    private String corpName;

    @Column(comment = "开始日期")
    private Timestamp beginDate;

    @Column(comment = "结束日期")
    private Timestamp endDate;

    @Column(comment = "排序")
    private long sequence;

    @Column(comment = "是否开启，0：关，1：开")
    private int isOpen;

    @Column(comment = "创建者")
    private String createUserId;

    @Column(comment = "更新者")
    private String updateUserId;

    @Column(defValue = "NOT NULL default '-1' ", comment = "开通数量，0：不限制")
    private int openNumber;

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public String getCorpName() {
        return corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    public Timestamp getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Timestamp beginDate) {
        this.beginDate = beginDate;
    }

    public Timestamp getEndDate() {
        return endDate;
    }

    public void setEndDate(Timestamp endDate) {
        this.endDate = endDate;
    }

    public long getSequence() {
        return sequence;
    }

    public void setSequence(long sequence) {
        this.sequence = sequence;
    }

    public int getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(int isOpen) {
        this.isOpen = isOpen;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public int getOpenNumber() {
        return openNumber;
    }

    public void setOpenNumber(int openNumber) {
        this.openNumber = openNumber;
    }
}
